package com.snail.poker.web.action;

import java.util.List;

import org.apache.struts2.json.annotations.JSON;

import com.snail.poker.model.Dictionary;
import com.snail.poker.service.DictionaryService;

public class DictionaryAction extends BaseAction {
	private List<Dictionary> dictList;
	private DictionaryService dictManage;

	public List<Dictionary> getDictList() {
		return dictList;
	}

	public void setDictList(List<Dictionary> dictList) {
		this.dictList = dictList;
	}

	@JSON(serialize = false)
	public DictionaryService getDictManage() {
		return dictManage;
	}

	public void setDictManage(DictionaryService dictManage) {
		this.dictManage = dictManage;
	}

	/**
	 * 查询投保金额区间数据
	 * 
	 * @return
	 */
	public String queryForInsure() {
		// TODO Auto-generated method stub
		this.dictList = this.dictManage.queryDict(1);
		return super.query();
	}
}
